//
//  YAYISchededdModel.m
//  YAYIDoctor
//
//  Created by hxp on 16/5/23.
//  Copyright © 2016年 hxp. All rights reserved.
//

#import "YAYISchededdModel.h"

@implementation YAYISchededdModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (void)setWorktimeList:(NSDictionary *)worktimeList
{
    _worktimeList = worktimeList;
    
    _scheduledTimeModelArray = [NSMutableArray array];
    
    NSArray *dictArray = (NSArray *)worktimeList;
    
    for (NSDictionary *dict in dictArray) {
        
//        if ([dict[@"iscurrent"] isEqualToString:@"Y"]) {
            YAYIScheduledTimeModel *model = [[YAYIScheduledTimeModel alloc] init];
            [model setValuesForKeysWithDictionary:dict];
            [_scheduledTimeModelArray addObject:model];
//        }
    }
    
    
}


@end
